package com.mystudy.quartzspringbootdemo.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mystudy.quartzspringbootdemo.entity.QuartzEntity;
import com.mystudy.quartzspringbootdemo.utils.PageUtils;
import java.util.List;
import java.util.Map;
/**
 * @author Thanks
 */
public interface TaskService extends IService<QuartzEntity> {
    /**
     * description: 列表查询
     * @expection
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * description:保存定时任务
     * @expection
     */
    void saveJob(QuartzEntity scheduleJob);

    /**
     * description: 更新定时任务
     * @expection
     */
    void update(QuartzEntity scheduleJob);

    /**
     * description:批量删除定时任务
     * @expection
     */
    void deleteBatch(Long[] jobIds);

    /**
     * description:批量更新定时任务状态
     * @expection
     */
    boolean updateBatch(List<QuartzEntity> list);

    /**
     * description:立即执行
     * @expection
     */
    void run(Long[] jobIds);

    /**
     * description:暂停运行
     * @expection
     */
    void pause(Long[] jobIds);

    /**
     * description:恢复运行
     * @expection
     */
    void resume(Long[] jobIds);
}
